package com.job.sun;

import java.util.Random;
import java.util.UUID;

/**
 * @author 张春阳
 * @version 1.0
 * @since 2022-07-14 21:58:24
 */
public class UseRan {
    public static void main(String[] args) {
        Random random = new Random();
        for (int i = 0; i < 100; i++) {
            System.out.println(random.nextInt(100) + 1);
        }
        String name = "张三";
        for (int i = 1; i <= 10; i++) {
            String s = UUID.randomUUID().toString() + name;
            System.out.println(s);
        }
        String[] names =new  String[]{"张三","李四","王五","赵六","jone","luck"};
        for(int i=0;i<7;i++){
            System.out.println("第"+i+"次,幸运儿是:"+names[random.nextInt(names.length)]);
        }

    }
}